<!--{include(pe_tpl('header.html'));}-->
<div class="right">
	<div class="now">
		<span class="fl c888">管理中心 > {$menutitle}</span>
		<div class="clear"></div>
	</div>
	<div class="right_main">
		<form method="post">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="480" style="background:#fbfbfb; border:1px #ddd solid">
				<div class="hy_table3">
				<h3>收货信息</h3>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="text-align:right" width="104">收货姓名：</td>
					<td style="text-align:left">
					<!--{if($info['order_state']=='success'):}-->
					{$info['user_tname']}
					<!--{else:}-->
					<input type="text" name="info[user_tname]" value="{$info['user_tname']}" class="inputall input150">
					<!--{endif;}-->
					<span class="cblue font12">（会员帐号：{$info['user_name']}）</span>
					</td>
				</tr>
				<tr>
					<td style="text-align:right">联系电话：</td>
					<td style="text-align:left">
					<!--{if($info['order_state']=='success'):}-->
					{$info['user_phone']}
					<!--{else:}-->
					<input type="text" name="info[user_phone]" value="{$info['user_phone']}" class="inputall input150" />
					<!--{endif;}-->
					</td>
				</tr>
				<tr>
					<td style="text-align:right">收货地址：</td>
					<td style="text-align:left">
					<!--{if($info['order_state']=='success'):}-->
					{$info['user_address']}
					<!--{else:}-->
					<input type="text" name="info[user_address]" value="{$info['user_address']}" class="inputall input300" />
					<!--{endif;}-->
					</td>
				</tr>
				<tr>
					<td style="text-align:right">付款方式：</td>
					<td style="text-align:left">
					<!--{if($info['order_state']=='notpay'):}-->
					<select name="info[order_payway]" class="inputselect">
					<!--{foreach($cache_payway as $k=>$v):}-->
					<!--{if(!$v['order_state'])continues;}-->
					<option value="{$k}" <!--{if($k==$info['order_payway']):}-->selected="selected"<!--{endif;}-->>{$v['payway_name']}</option>
					<!--{endforeach;}-->
					</select>
					<!--{else:}-->
					{$ini_payway[$info['order_payway']]}
					<!--{endif;}-->
					</td>
				</tr>
				<tr>
					<td style="text-align:right">买家留言：</td>
					<td style="text-align:left">
					<!--{if($info['order_state']=='success'):}-->
					{$info['order_text']}
					<!--{else:}-->
					<textarea name="info[order_text]" style="width:300px;height:60px">{$info['order_text']}</textarea>
					<!--{endif;}-->
					</td>
				</tr>
				<!--{if($info['order_state']!='success'):}-->
				<tr>
					<td></td>
					<td style="text-align:left"><input type="submit" name="pesubmit" value="提 交" class="tjbtn" /></td>
				</tr>
				<!--{endif;}-->
				</table>
				</div>
			</td>
			<td valign="top" style="background:#fbfbfb; border:1px #ddd solid">
				<div class="ddzt">订单状态</div>
				<div class="ddlc">
					<p><span class="font12">{pe_date($info['order_atime'])}：</span><span class="cgreen">订单创建成功</span>，订单编号：{$info['order_id']}</p>
					<!--货到付款-->
					<!--{if($info['order_payway']=='cod'):}-->
						<!--{if($info['order_state']=='notpay'):}-->
						<p class="mat5 cred" style="padding-left:113px">等待卖家发货<a href="admin.php?mod=order&act=state&state=send&id={$info['order_id']}" onclick="return pe_dialog(this, '填写快递信息')" class="shouhuo_btn mal10">发货</a></p>
						<!--{elseif($info['order_state']=='send'):}-->
						<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，快递单号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
						<p class="mat5 cred" style="padding-left:113px">等待买家付款<a href="admin.php?mod=order&act=state&state=paid&id={$info['order_id']}" onclick="return pe_cfone(this, '付款')" class="pay_btn mal10">付款</a></p>
						<!--{elseif($info['order_state']=='success'):}-->
						<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，快递单号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
						<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
						<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen strong">订单交易成功，欢迎下次光临！</span></p>
						<!--{endif;}-->
					<!--先款后货-->
					<!--{else:}-->
						<!--{if($info['order_state']=='notpay'):}-->
						<p class="cred mat5" style="padding-left:113px">等待买家付款<a href="admin.php?mod=order&act=state&state=paid&id={$info['order_id']}" onclick="return pe_cfone(this, '付款')" class="pay_btn mal10">付款</a></p>
						<!--{elseif($info['order_state']=='paid'):}-->
						<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
						<p class="mat5 cred" style="padding-left:113px">等待卖家发货<a href="admin.php?mod=order&act=state&state=send&id={$info['order_id']}" onclick="return pe_dialog(this, '填写快递信息')" class="shouhuo_btn mal10">发货</a></p>
						<!--{elseif($info['order_state']=='send'):}-->
						<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
						<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，快递单号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
						<p class="mat5 cred" style="padding-left:113px">等待买家确认</p>
						<!--{elseif($info['order_state']=='success'):}-->
						<p class="mat5"><span class="font12">{pe_date($info['order_ptime'])}：</span><span class="cgreen">买家付款成功</span>，支付金额：{$info['order_money']}元</p>
						<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen">卖家已经发货</span>，运单编号：{$info['order_wlid']}（{$info['order_wlname']?$info['order_wlname']:'无需快递'}）</p>
						<p class="mat5"><span class="font12">{pe_date($info['order_stime'])}：</span><span class="cgreen strong">订单交易成功，欢迎下次光临！</span></p>
						<!--{endif;}-->
					<!--{endif;}-->
				</div>
			</td>
		</tr>
		</table>
		<div class="hy_table" style="margin-top:10px;">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hy_tb_tt1">
			<tr>
				<td class="bgtt" width="">商品详情</td>
				<td class="bgtt" width="120">商品单价(元)</td>
				<td class="bgtt" width="120">购买数量</td>
			</tr>
			</table>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-left:1px solid #ddd;">
			<!--{foreach($product_list as $v):}-->
			<tr>
				<td style="text-align:left;">
					<div class="dingdan_list" style="padding-top:0">
						<a href="{pe_url('product-'.$v['product_id'])}" class="fl mar5"><img src="{pe_thumb($v['product_logo'], 60, 60)}" width="45" height="45"></a>
						<div class="fl font12">
							<a href="{pe_url('product-'.$v['product_id'])}" title="{$v['product_name']}" target="_blank" class="cblue dd_name">{$v['product_name']}</a>
							<!--{if($v['prorule_name']):}-->
							<p class="c888 mat5"><!--{foreach(unserialize($v['prorule_name']) as $vv):}-->[{$vv['name']}：{$vv['value']}]&nbsp;&nbsp;<!--{endforeach;}--></p>
							<!--{endif;}-->
							</div>
						<div class="clear"></div>
					</div>
				</td>
				<td width="110"><span class="num strong font14">{$v['product_money']}</span></td>
				<td width="100"><span class="num font14">{$v['product_num']}</span></td>
			</tr>
			<!--{endforeach;}-->
			</table>
			<div class="ddxq_je font13">
				<!--{if($info['order_state']!='notpay'):}-->
				应付总额：<span class="strong num1 font18 cred strong" id="order_money">{$info['order_money']}</span>(元) ＝ 
				<span class="font14 cred num strong">{$info['order_productmoney']}</span>(商品总额)
				＋ <span class="font14 cred num strong">{$info['order_wlmoney']}</span>(运费)
				<!--{else:}-->
				应付总额：<span class="strong num1 font18 cred strong" id="order_money">{$info['order_money']}</span>(元) ＝ 
				<input type="text" name="info[order_productmoney]" value="{$info['order_productmoney']}" class="inputtext input80" />(商品总额)
				＋ <input type="text" name="info[order_wlmoney]" value="{$info['order_wlmoney']}" class="inputtext input60" />(运费)
				<!--{endif;}-->
			</div>
		</div>
		</form>
	</div>
	<div class="clear"></div>
</div>
<script charset="utf-8" src="{$pe['host_root']}include/plugin/artdialog/jquery.artDialog.js?skin=chrome"></script>
<script charset="utf-8" src="{$pe['host_root']}include/plugin/artdialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
$(function(){
	$(":input[name='info[order_productmoney]']").add(":input[name='info[order_wlmoney]']").keyup(function(){
		var order_productmoney = parseFloat($(":input[name='info[order_productmoney]']").val());
		var order_wlmoney = parseFloat($(":input[name='info[order_wlmoney]']").val());
		if (isNaN(order_productmoney)) {
			order_productmoney = 0;
		}
		if (isNaN(order_wlmoney)) {
			order_wlmoney = 0;
		}
		$("#order_money").html(order_productmoney + order_wlmoney);
	})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->